<template>
  <el-container id="indexDiv">
    <el-header id="indexHeader">
        Hello World
    </el-header>
    <el-container>
      <el-aside width="200px" id="container">
        <el-button style="width: 100%" @click="routerPush('/index/basic')">信息管理</el-button>
        <el-button style="width: 100%" @click="routerPush('/index/meeting')">会议/比赛管理</el-button>
        <el-button style="width: 100%" @click="routerPush('/index/admin')">管理员管理</el-button>
<!--        <div @click="routerPush('/index/basic')">信息管理</div>-->
<!--        <div @click="routerPush('/index/meeting')">会议/比赛管理</div>-->
<!--        <div @click="routerPush('/index/admin')">管理员管理</div>-->
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script setup lang="ts">
import router from "../router/router";
  function routerPush(url:string){
    router.push(url)
  }
</script>

<style scoped>
#indexDiv {
  height: 100%;
  width: 100%;
}
#indexHeader{
  height: 20px;
  font-size: 20px;
  text-align: center;
  align-items: center;
}
#container>div{
  margin-top: 20px;
  font-size: 16px;
}
#container{
  margin-top: 40px;
  background-color: darkseagreen;
}
</style>
